
import request from '@/utils/request';
import { ResultIPageShopResponse } from './definitions/ResultIPageShopResponse';
import { Shop } from './definitions/Shop';


export class ShopController {

    static listUsingPOSTPath: string = "/v1/api/shop/list";
    /// list
    async listUsingPOST(data: Shop, headers?: any):  Promise<ResultIPageShopResponse> {
      return request(`/v1/api/shop/list`, {
        method: "POST",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static selectOneUsingGETPath: string = "/v1/api/shop/selectOne";

    async selectOneUsingGET(id: any,  headers?: any) : Promise<Shop> {
      return request(`/v1/api/shop/selectOne?id=${id ?? "" }`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
}